package com.huawei.M01.iterator.F24;

import java.util.HashSet;
import java.util.Set;

public class MininumOperations {
    public int minimumOperations(int[] nums) {
        Set<Integer> resHelp = new HashSet<>();
        for (int num : nums) {
            if (num == 0) {
                continue;
            }
            resHelp.add(num);
        }
        return resHelp.size();
    }
}
